<template>
    <div
        class="imageContainer w-full h-footer-275 bg-cover bg-center"
        :style="'background-image: url(' + state.home.dinyue.image + ')'"
    >
        <div class="flex flex-col h-full items-center justify-around py-20">
            <div class="title text-white text-2xl font-light">{{ state.home.dinyue.title }}</div>
            <div class="flex flex-col md:flex-row justify-center items-center">
                <input
                    class="input text-md text-gray-500 outline-none md:w-400 w-296 h-8 rounded-sm px-3 mt-5 md:mt-0"
                    type="email"
                    :placeholder="state.home.dinyue.placeHolder"
                />
                <button
                    class="btn w-24 h-7 rounded-md text-sm text-white tracking-widest ml-5 mt-5 md:mt-0"
                >{{ state.home.dinyue.button }}</button>
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { state } from "@utils/store";

</script>
<style lang="scss">
.title {
    text-shadow: 0 0 3px rgba(62, 62, 62, 0.8);
    letter-spacing: 0.2rem;
}
.input::placeholder {
    color: #b3b3b3;
    font-size: 14px;
    letter-spacing: 0.1rem;
}
.input {
    transition: all ease-in-out 0.5s;
}
.input:focus {
    box-shadow: 2px 2px 4px rgba(17, 17, 17, 0.5);
}

.btn {
    background-image: linear-gradient(to bottom, #2f6dbf, #2c5b8d);
    box-shadow: 2px 2px 4px rgba(17, 17, 17, 0.5);
}
.btn:active {
    background-image: linear-gradient(to bottom, #2c5b8d, #2f6dbf);
}
</style>